package org.dreamwork.jasmine2.restful.client.gui.model;

import javax.swing.*;
import javax.swing.table.DefaultTableCellRenderer;
import java.awt.*;

/**
 * Created by IntelliJ IDEA.
 * User: seth.yang
 * Date: 2014/12/10
 * Time: 3:13
 */
public class TableHeaderRenderer extends DefaultTableCellRenderer {
    @Override
    public Component getTableCellRendererComponent (JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) {
        JLabel label = (JLabel) super.getTableCellRendererComponent (table, value, isSelected, hasFocus, row, column);
        label.setFont (new Font ("微软雅黑", Font.PLAIN, 14));
        return label;
    }
}